<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/4/28
 * Time: 15:21
 */
namespace app\validate;
class TagValidate{
    protected $rule = [
        'tag_name' => 'require'
    ];
    protected $message = [
        'tag_name.require'    => '标签名称不能为空',
    ];
    public function tagValidate(){
        $validate['rule']    = $this->rule;
        $validate['message'] = $this->message;
        return $validate;
    }
}